package com.work.music.entity;

import java.util.Date;

public class WordCollect extends BaseEntity {
    private Long id;

    private String targetword;

    private Date addtime;

    private String addip;

    private String phonetic;

    private String chineseword;

    private String voicefileurl;

    private String file;

    private int isCollect;

    public WordCollect(Word word, int isCollect) {
        if (word != null) {
            this.id = word.getId();
            this.targetword = word.getTargetword();
            this.addtime = word.getAddtime();
            this.addip = word.getAddip();
            this.phonetic = word.getPhonetic();
            this.chineseword = word.getChineseword();
            this.voicefileurl = word.getVoicefileurl();
            this.file = word.getFile();
        }
        this.isCollect = isCollect;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTargetword() {
        return targetword;
    }

    public void setTargetword(String targetword) {
        this.targetword = targetword;
    }

    public Date getAddtime() {
        return addtime;
    }

    public void setAddtime(Date addtime) {
        this.addtime = addtime;
    }

    public String getAddip() {
        return addip;
    }

    public void setAddip(String addip) {
        this.addip = addip;
    }

    public String getPhonetic() {
        return phonetic;
    }

    public void setPhonetic(String phonetic) {
        this.phonetic = phonetic;
    }

    public String getChineseword() {
        return chineseword;
    }

    public void setChineseword(String chineseword) {
        this.chineseword = chineseword;
    }

    public String getVoicefileurl() {
        return voicefileurl;
    }

    public void setVoicefileurl(String voicefileurl) {
        this.voicefileurl = voicefileurl;
    }

    public String getFile() {
        return file;
    }

    public void setFile(String file) {
        this.file = file;
    }

    public int getIsCollect() {
        return isCollect;
    }

    public void setIsCollect(int isCollect) {
        this.isCollect = isCollect;
    }
}